full devices expect to be able to read the partition table during xlvbd_add
authorvh249@kneesaa.uk.xensource.com <vh249@kneesaa.uk.xensource.com>
Thu, 29 Sep 2005 15:25:50 +0000 (11:25 -0400)
committervh249@kneesaa.uk.xensource.com <vh249@kneesaa.uk.xensource.com>
Thu, 29 Sep 2005 15:25:50 +0000 (11:25 -0400)
but couldn't because the device was not marked as BLKIF_CONNECTED and thus
blkif_queue_request discarded the read request. fix bug #220

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c

index eec15e386447d87b7b70e8e6f3e41f2663ee5c3b..82097a4abf306873c6449218ead041f7b68bd89f 100644 (file)
@@ -469,8 +469,8 @@ static void watch_for_status(struct xenbus_watch *watch, const char *node)
                return;
        }
 
-       xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
        info->connected = BLKIF_STATE_CONNECTED;
+       xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
 
        blkif_state = BLKIF_STATE_CONNECTED;